<template>
	<view class="content">
		<image src="../../static/images/home/home-top-bg.png" mode="widthFix" style="width: 100%;">
		</image>
		<view class="notice-block">
			<view class="notice-item">
				<view class="examination-item" @click="navigate('/pages/sign_up/?id='+item.id)">
					<view class="examination-title">
						<view class="name">{{info.title}}</view>
					</view>
					<view class="label-item">
						<view class="iconfont icon-dizhi" style="font-size: 40rpx;margin-left: -4rpx;"></view>
						<view class="label">{{info.address}}</view>
					</view>
					<view class="label-item">
						<view class="iconfont icon-shijian"></view>
						<view class="label">{{info.starTime}}至{{info.endTime}}</view>
					</view>
					<view class="label-item">
						<view class="iconfont icon-daojishi"></view>
						<view class="label">{{info.upTime}}</view>
					</view>
				</view>
			</view>
		</view>
		<view class="info-block">
			<view class="tab-list">
				<view class="tab-item" @click="bindActive(1)" :class="tabActive==1? 'active' : ''">报名须知</view>
				<view class="tab-item" @click="bindActive(2)" :class="tabActive==2? 'active' : ''">报名指南</view>
			</view>
			<view class="text-item" v-if="tabActive==1">
				<view class="text">
					1.凭准考证、有效居民身份证原件 (有期内的居民身份证或临时居民身份证)进入考场，两证缺一者不得参加考试考试前60分钟方可进入考场。</view>
				<view class="text">
					2.严禁将各种通讯和无线接收设备等带至座位。已带入考点的通讯工具必须切断电源，放入考场手机存放袋中。考生在进入考场前必须接受监考人员的金属探测仪检查,拒不上交通讯工具的考生坚决按违纪进行处理。
				</view>
				<view class="text">
					3.考生自行携带橡皮、2B铅笔、蓝、黑色字迹的钢笔、签字笔。进入考场后对号入座，将证件放在桌面右上角。除规定文具和证件外，其他个人物品一律上交至考场前方指定位置，开考后严禁传递任何物品</view>
				<view class="btn">我已了解，开始报名</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info: {
					id: 1,
					title: '酒泉市事业单位公开招聘工作人员',
					address: '酒泉卫校',
					starTime: '2021-01-15 8:30',
					endTime: '2021-01-18 17:00',
					upTime: '距离报名截止4小时'
				},
				tabActive: 1
			}
		},
		methods: {
			bindActive(e) {
				this.tabActive = e
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		width: 100%;
		min-height: 100vh;
		padding-bottom: 30rpx;

		.notice-block {
			position: relative;
			padding: 20rpx;
			margin-top: -260rpx;

			.notice-item {
				display: flex;
				flex-direction: column;
				position: relative;

				.examination-item {
					background: #fff;
					margin-top: 30rpx;
					display: flex;
					flex-direction: column;
					justify-content: space-between;
					padding: 30rpx;
					border-radius: 20rpx;
					box-shadow: 0 0 18rpx 0 #dddddd;

					.examination-title {
						display: flex;
						flex-direction: row;
						align-items: center;
						justify-content: space-between;
						border-bottom: 1px solid #eee;
						padding-bottom: 30rpx;

						.name {
							font-size: 30rpx;
							font-weight: bold;
						}

						.application {
							background-color: #69A6F6;
							color: #fff;
							border-radius: 60rpx;
							padding: 10rpx 14rpx;
							font-size: 30rpx;
						}
					}

					.label-item {
						display: flex;
						flex-direction: row;
						align-items: center;
						padding-top: 30rpx;

						.iconfont {
							color: #2287FC;
							font-size: 30rpx;
							font-weight: bold;
						}

						.label {
							font-size: 28rpx;
							margin-left: 14rpx;
						}
					}
				}
			}
		}

		.info-block {
			margin-top: 30rpx;
			background: #fff;
			min-height: 50vh;

			.tab-list {
				padding-top: 20rpx;
				display: flex;
				flex-direction: row;
				background-color: #fff;
				box-shadow: 0 0 18rpx 0 #dddddd;

				.tab-item {
					width: calc(100% / 2);
					text-align: center;
				}

				.tab-item.active {
					border-bottom: #2287FC 2px solid;
					padding-bottom: 20rpx;
				}
			}

			.text-item {
				padding: 30rpx;

				.text {
					font-size: 30rpx;
					line-height: 54rpx;
				}

				.btn {
					width: 100%;
					height: 80rpx;
					background-color: #2B8CFD;
					color: #fff;
					border-radius: 40rpx;
					display: flex;
					justify-content: center;
					align-items: center;
					margin-top: 40rpx;
					margin-bottom: 30rpx;

				}
			}
		}
	}
</style>